<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变量的作用域练习题</title>
    <script>
        function f1() {
            var a
            a = b = c = 9
            console.log('a' + a)
            console.log('b' + b)
            console.log('c' + c)
        }

        var name = 'a'
        f1()
        console.log('cc' + c)
        console.log('bb' + b)
        console.log('aa' + a)
    </script>
</head>

<body>

</body>

</html>